package cn.befory.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单
 * @author befory
 * @since 2019-10-7
 */
public class Order implements Serializable {
    private static final long serialVersionUID = -6912633239759145297L;
    private Long id;
    /**
     * 订单编号
     */
    private String code;
    /**
     * 客户id
     */
    private Long customerId;
    /**
     * 联系人id
     */
    private Long contactId;
    /**
     * 状态(0待付定金1已付定金2待发货3已验收4待收尾款5结账)
     */
    private Integer status;

    /**
     * 预付款额
     */
    private BigDecimal advance;
    /**
     * 已收额
     */
    private BigDecimal amountReceived;
    /**
     * 创建时间
     */
    private Long ct;
    /**
     * 结账时间
     */
    private Long sat;
    /**
     * 验收时间
     */
    private Long caat;
    /**
     * 发货时间
     */
    private Long dt;
    /**
     * 最长账期
     */
    private Integer maxPds;
    /**
     * 结算方式(1预付100%,2货到付款,3月结30天,4月结60天,5月结90天)
     */
    private Integer payType;

    public Long getId() {
        return id;
    }

    public Order setId(Long id) {
        this.id = id;
        return this;
    }

    public String getCode() {
        return code;
    }

    public Order setCode(String code) {
        this.code = code;
        return this;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public Order setCustomerId(Long customerId) {
        this.customerId = customerId;
        return this;
    }

    public Long getContactId() {
        return contactId;
    }

    public Order setContactId(Long contactId) {
        this.contactId = contactId;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public Order setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public BigDecimal getAdvance() {
        return advance;
    }

    public Order setAdvance(BigDecimal advance) {
        this.advance = advance;
        return this;
    }

    public BigDecimal getAmountReceived() {
        return amountReceived;
    }

    public Order setAmountReceived(BigDecimal amountReceived) {
        this.amountReceived = amountReceived;
        return this;
    }

    public Long getCt() {
        return ct;
    }

    public Order setCt(Long ct) {
        this.ct = ct;
        return this;
    }

    public Long getSat() {
        return sat;
    }

    public Order setSat(Long sat) {
        this.sat = sat;
        return this;
    }

    public Long getCaat() {
        return caat;
    }

    public Order setCaat(Long caat) {
        this.caat = caat;
        return this;
    }

    public Long getDt() {
        return dt;
    }

    public Order setDt(Long dt) {
        this.dt = dt;
        return this;
    }

    public Integer getMaxPds() {
        return maxPds;
    }

    public Order setMaxPds(Integer maxPds) {
        this.maxPds = maxPds;
        return this;
    }

    public Integer getPayType() {
        return payType;
    }

    public Order setPayType(Integer payType) {
        this.payType = payType;
        return this;
    }
}
